﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using Keiho.ServiceModel;

[ServiceContract]
public interface IRolesService
{
    [OperationContract]
    [WebGet(ResponseFormat = WebMessageFormat.Json)]
    ServiceResponse<string[]> GetRolesForUser();

    [OperationContract]
    [WebGet(UriTemplate = "IsUserInRole/{roleName}", ResponseFormat = WebMessageFormat.Json)]
    ServiceResponse<bool> IsUserInRole(string roleName);
}
